﻿using DTM.Model;

namespace DTM.WinApp
{
    /// <summary>
    /// Interface <see cref="IApplicationManager"/> define manager of DTM UI.
    /// </summary>
    public interface IApplicationManager
    {
        void ShowNewTournament();

        /// <summary>
        /// Show all players view.
        /// </summary>
        void ShowPlayersView();

        /// <summary>
        /// Show add player view.
        /// </summary>
        /// <returns></returns>
        bool ShowPlayerView();

        /// <summary>
        /// Show edit player view;
        /// </summary>
        /// <param name="player">Player to edit</param>
        /// <returns></returns>
        bool ShowPlayerView(IPlayer player);

        /// <summary>
        /// Shows generic error message window;
        /// </summary>
        /// <param name="message">Message to display.</param>
        void ShowErrorMessage(string message);
    }
}